﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WFForm.Master" AutoEventWireup="true" CodeBehind="KQApplyView.aspx.cs" Inherits="WF.Web.Pages.Workflow.KQ.KQApplyView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
考勤明细
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Other_head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Path" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Main" runat="server">
<div class="bodyarea" style="width: 99%"> 
 <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/ui/jquery.ui.core.js" />
            <asp:ScriptReference Path="~/Scripts/ui/jquery.ui.widget.js" />
            <asp:ScriptReference Path="~/Scripts/ui/jquery.ui.tabs.js" />
            <asp:ScriptReference Path="~/Scripts/DatePicker/WdatePicker.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
        <!--审批内容开始-->
        <div class="ititle"><h4>考勤申请</h4></div>  
        <div class="inputform">        
        <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" 
            EnableModelValidation="True" DefaultMode="Edit" Width="100%" DataKeyNames="ID" >            
            <EditItemTemplate>
               <table width="610" border="0" align="center" cellpadding="0" cellspacing="0" >
				<tr>
					<td height="28">
						<table width="610" height="28" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="2"><img src="../../../images/space.gif" width="1" height="1"></td>
								<td width="602" align="center">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="left" style="WIDTH: 230px"><IMG alt="" src="../../../images/logo.gif" id="Logo" height="53" width="119"></td>
											<td style="WIDTH: 34px"><img src="../../../images/icon.gif" width="34" height="36"></td>
											<td><font color="#006600" size="3"><strong>考勤申请单</strong></font></td>
										</tr>
									</table>
								</td>
								<td width="6"><img src="../../../images/space.gif" width="1" height="1"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><table width="605" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#d9d9d9"><img src="../../../images/space.gif" width="1" height="1"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" align="left">
						<asp:Label id="lblErrorDescription" runat="server"></asp:Label>&nbsp;</td>
				</tr>
				<tr>
					<td align="left"><table width="600" border="0" cellspacing="2" cellpadding="2">
							<tr>
								<td>
									<asp:TextBox id="K2TextBox1" runat="server" Width="136px" DESIGNTIMEDRAGDROP="1879"
										ReadOnly="True" Text='<%# Bind("DeptName") %>' class="inputs" ></asp:TextBox>
								申请人
									<asp:TextBox id="K2TextBox2" runat="server" Width="97px" DESIGNTIMEDRAGDROP="1882"
										ReadOnly="True" Text='<%# Bind("ApplicantName") %>' class="inputs" ></asp:TextBox>
								申请时间
									<asp:TextBox id="K2TextBox3" runat="server" Width="154px" ReadOnly="True"
								       Text='<%# Bind("ApplyRegisterDate") %>' class="inputs" ></asp:TextBox></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="left"><table width="600" border="0" cellspacing="2" cellpadding="2">
							<tr>
								<td>本人&nbsp;
									<asp:TextBox id="K2TextBox4" runat="server" Width="96px" DESIGNTIMEDRAGDROP="1891"
										ReadOnly="True" Text='<%# Bind("ApplicantName") %>' class="inputs" ></asp:TextBox>
									因&nbsp;
									<asp:TextBox id="K2TextBox5" runat="server" Width="264px" ReadOnly="True"
									   Text='<%# Bind("ApplyReason") %>' class="inputs"></asp:TextBox>
									申请&nbsp;
									<asp:TextBox id="K2TextBox6" runat="server" Width="96px" ReadOnly="True" Text='<%# Bind("HoliDayTypeName") %>' class="inputs" ></asp:TextBox>
									，</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="left"><table width="600" border="0" cellspacing="2" cellpadding="2">
							<tr>
								<td>
									从&nbsp;
									<asp:TextBox id="txtDatetimeFrom" runat="server" Width="168px" DESIGNTIMEDRAGDROP="1981"
										ReadOnly="True" Text='<%# Bind("ApplyDateFrom","{0:yyyy-MM-dd}") %>' class="inputs" ></asp:TextBox>&nbsp;
                                        <asp:TextBox ID="txtHourFrom" runat="server"  Width="40" Text='<%# Bind("HourFrom") %>' class="inputs" ></asp:TextBox>时
                                        <asp:TextBox ID="txtMinuteFrom" runat="server" Text='<%# Bind("MinuteFrom") %>' ReadOnly="true" Width="40" class="inputs" ></asp:TextBox>分
                                        &nbsp;至&nbsp;
									<asp:TextBox id="txtDatetimeTo" runat="server" Width="168px" ReadOnly="True"
										Text='<%# Bind("ApplyDateTo","{0:yyyy-MM-dd}") %>' CssClass="inputs" ></asp:TextBox>
                                        <asp:TextBox ID="txtHourTo" runat="server" Width="40" ReadOnly="true" Text='<%# Bind("HourTo") %>' CssClass="inputs"  ></asp:TextBox>时
                                        <asp:TextBox ID="txtMinuteTo" runat="server" Width="40" ReadOnly="true" Text='<%# Bind("MinuteTo") %>' CssClass="inputs" ></asp:TextBox>分
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="left"><table width="600" border="0" cellspacing="2" cellpadding="2">
							<tr>
								<td>
									共&nbsp;
									<asp:TextBox id="K2TextBox9" runat="server" Width="72px" DESIGNTIMEDRAGDROP="1983"
										ReadOnly="True" Text='<%# Bind("ApplyDays") %>' CssClass="inputs" ></asp:TextBox>
									天， （&nbsp;
									<asp:TextBox id="K2TextBox10" runat="server" Width="72px" ReadOnly="True"
										 Text='<%# Bind("ApplyHours") %>' CssClass="inputs" ></asp:TextBox>
									小时）， 请批准。
									<asp:TextBox id="txtApprovalResult" runat="server" Width="97px" ReadOnly="True"
										DataField="ProcXML: ApprovalResult" Visible="False" CssClass="inputs"></asp:TextBox>
									<asp:TextBox id="txtCurrentActivityName" runat="server" DataField="ProcData: CurrentActivityName"
										ReadOnly="True" Width="97px" Visible="False" CssClass="inputs" ></asp:TextBox></td>
							</tr>
						</table>
					</td>
				</tr>
                <tr>
                    <td><asp:HyperLink ID="lnkView" runat="server" CssClass="bluelink" >查看附件</asp:HyperLink></td>
                </tr>
                </table>                                    
            </EditItemTemplate>                             
        </asp:FormView>  
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DataObjectTypeName="WF.Model.KQApplyEntity" 
            SelectMethod="GetKQApplyEntityByID" 
            TypeName="WF.ViewModels.Workflow.KQApply.KQApplyViewVM" >            
        <SelectParameters> 
            <asp:Parameter  Name="ID" DefaultValue="123" />
        </SelectParameters>
        </asp:ObjectDataSource>  
        </div> 
        <!--审批内容结束-->
        <!--审批历史开始-->
        <div class="blank10"></div>
        <div class="ititle"><h4>审批历史记录：</h4></div>                
        <div class="dataGrid">
        <asp:ListView ID="dataListView" runat="server" DataSourceID="ObjectDataSource2" DataKeyNames="ID"
            EnableModelValidation="true" >
            <LayoutTemplate>
                <table cellspacing="0" class="Grid">
                    <tr>
                        <th width="17%">
                            步骤名称
                        </th>
                        <th width="16%">
                            审批时间
                        </th>
                        <th width="16%">
                            审批人员
                        </th>
                        <th width="16%">
                            审批人帐号
                        </th>                        
                        <th width="16%">
                            审批结果
                        </th>    
                        <th width="16%">
                            备注
                        </th>                                         
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>                        
                        <%# Eval("ActivityName")%>
                    </td>
                    <td>
                        <%# Eval("ApprovalDate","{0:yyyy-MM-dd}")%>&nbsp;
                    </td>                    
                    <td>
                        <%# Eval("UserName" )%>&nbsp;
                    </td>
                    <td>
                        <%# Eval("DomainAccount")%>&nbsp;
                    </td>
                    <td>
                        <%# Eval("ApprovalResult")%>&nbsp;
                    </td>  
                    <td>
                        <%# Eval("ApprovalComment")%>&nbsp;
                    </td>                                     
                </tr>
            </ItemTemplate>
            <EmptyItemTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td>
                            没有数据!
                        </td>
                    </tr>
                </table>
            </EmptyItemTemplate>
        </asp:ListView>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="GetAuditHistoryByBizDataID" 
            TypeName="WF.ViewModels.WorkflowInfo.AuditHistoryVM">
            <SelectParameters>
            <asp:QueryStringParameter Name="bizDataID" QueryStringField="ID" />
            </SelectParameters>          
        </asp:ObjectDataSource>
        </div>  
        <!--审批历史结束-->
        <!--审批处理开始-->
        <!--审批处理结束-->
    </div>
</asp:Content>
